# 定义静态库 cyber_time_lib
cc_library(
    name = "cyber_time_lib",
    srcs = [
        "cyber_duration.cc",
        "cyber_time.cc",
        "cyber_rate.cc",
    ],
    hdrs = [
        "cyber_duration.h",
        "cyber_time.h",
        "cyber_rate.h",
    ],
    visibility = ["//visibility:public"],
)

# 定义 GoogleTest 的 cc_test
cc_test(
    name = "cyber_duration_test",
    srcs = ["cyber_duration_test.cc"],
    deps = [
        ":cyber_time_lib",
        "@gtest//:gtest_main",
    ],
)

cc_test(
    name = "cyber_time_test",
    srcs = ["cyber_time_test.cc"],
    deps = [
        ":cyber_time_lib",
        "@gtest//:gtest_main",
    ],
)

cc_binary(
    name = "cyber_rate_example",
    srcs = ["cyber_rate_example.cc"],
    deps = [
        ":cyber_time_lib",
    ],
)
